<?php
namespace app\admin\validate;

use think\Validate;

class UsedDeal extends Validate
{
    protected $rule = [
        'buy'   => 'require|number|length:11',
    ];

    protected $message = [
        'buy.require'   => '请输入买家联系电话',
        'buy.number'   => '电话格式错误',
        'buy.length'   => '电话长度错误'
    ];
}